package com.example.photo.model.VO;

import com.example.photo.model.domain.Prize;
import lombok.Data;

/**
 * 奖项信息
 *
 * @author Lwh
 * @time 2023/04/01 16:41
 */
@Data
public class PrizeVO {
    //奖项id
    private Integer prizeId;
    //奖项名称
    private String prizeName;
    //总人数
    private Integer totalNum;
    //剩余名额
    private Integer vacantNum;
    //奖品名称
    private String goodName;
    //奖品链接
    private String goodLink;
    //奖品图片
    private String goodPic;
    //所属组
    private Integer contestGroup;
    //所属赛事id
    private Integer contestId;

    public PrizeVO(Prize prize) {
        this.prizeId = prize.getPrizeId();
        this.prizeName = prize.getPrizeName();
        this.totalNum = prize.getTotalNum();
        this.vacantNum = prize.getVacantNum();
        this.goodName = prize.getGoodName();
        this.goodLink = prize.getGoodLink();
        this.goodPic = prize.getGoodPic();
        this.contestGroup = prize.getContestGroup();
        this.contestId = prize.getContestId();
    }
}
